#include <stdio.h>
#include <math.h>

int main()
{
    int n, digits;
    int k; //打印输出的那一位
    scanf("%d", &n);
    if (n == 0)
    {
        printf("ling");
    }
    else
    {
        digits = (int)log10(abs(n)) + 1;
        if(n<0)
        {
            printf("fu ");
            n = -n;
        }
        while (digits > 0)
        {
            k = (int)(n / pow(10.0, digits * 1.0 - 1));
            switch (k)
            {
            case 0:
                printf("ling");
                break;
            case 1:
                printf("yi");
                break;
            case 2:
                printf("er");
                break;
            case 3:
                printf("san");
                break;
            case 4:
                printf("si");
                break;
            case 5:
                printf("wu");
                break;
            case 6:
                printf("liu");
                break;
            case 7:
                printf("qi");
                break;
            case 8:
                printf("ba");
                break;
            case 9:
                printf("jiu");
                break;
            default:
                break;
            }
            if (digits > 1)
            {
                printf(" ");
            }
            n = (int)(n % (int)(pow(10.0, digits * 1.0 - 1)));
            digits--;
        }
    }

    return 0;
}